cmake_minimum_required("VERSION" "2.8")

set("CMAKE_LEGACY_CYGWIN_WIN32" "0")

project("CmdParser")

set("CMAKE_C_FLAGS" "${CMAKE_C_FLAGS} -Wall -std=c11")
set("CMAKE_CXX_FLAGS" "${CMAKE_CXX_FLAGS} -Wall -std=c++11")

option("ENABLE_PORTING_TO_C" "OFF by default, define as ON to enable porting to c." "OFF")
option("ENABLE_TEST" "OFF by default, define as ON to enable test." "OFF")

include_directories("${PROJECT_SOURCE_DIR}")

add_subdirectory("src")
add_subdirectory("porting")
if (ENABLE_TEST)
	add_subdirectory("test")
endif ()
